﻿
<script type="text/javascript" src="https://api.map.baidu.com/api?v=1.0&&type=webgl&ak=Ayy2qg7yLpk30zrVmlWLRmmg8MwWY6pi"></script>



<!--地图-->
<div class="hotelInfo-map" style="height:200px;width:300px;" id="container"></div>


<script>
    var map = new BMapGL.Map('container');
    var point = new BMapGL.Point(116.30690, 40.04769);
    map.centerAndZoom(point, 15);
    // 创建点标记
    var marker = new BMapGL.Marker(point);
    map.addOverlay(marker);
    // 创建信息窗口
    var opts = {
        width: 200,
        height: 100,
        title: '北京八维研修学院'
    };
    var infoWindow = new BMapGL.InfoWindow('地址：北京市海淀区上地七街唐家岭路57号', opts);
    marker.addEventListener('click', function () {
        map.openInfoWindow(infoWindow, point); // 开启信息窗口
    });
</script>